package cn.edu.njnu.opengmpback.Modeling.entity;

import cn.edu.njnu.opengmpback.resource.entity.ModelItem;
import cn.hutool.core.util.IdUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Data
@Document
public class ComputeModel {
    @Id
    @ApiModelProperty(value = "id",hidden = true)
    String id= IdUtil.objectId();

    String modelName;
    String description;
    Boolean publicBoolean = true;
    String projectId;
    List<String> modelList = new ArrayList<>();

    String pythonVersion;
    String workDir;

    boolean ifReq;
    String PyPath;
    String containerId;

    String mainPyContent;
    List<DockerPackage> packageList = new ArrayList<>();

    String workflow;
    String workflowPath;
}
